package com.ljx.qqpro.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 聊天记录表
 * 
 * @author LiJunXi
 * @email 2770063826@qq.com
 * @date 2023-10-18 17:28:14
 */
@Data
@TableName("tb_chat_record")
public class ChatRecordEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@TableId(type = IdType.AUTO)
	private Long id;
	/**
	 * 用户ID
	 */
	private Long userId;
	/**
	 * 聊天ID
	 */
	private Long chatId;
	/**
	 * 内容
	 */
	private String content;
	/**
	 * 回复用户ID
	 */
	private Long toUser;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 更新时间
	 */
	private Date updateTime;
	/**
	 * 状态（1：正常，2：删除）
	 */
	private Integer status;

	public ChatRecordEntity(Long chatId, Long userId, String content) {
		this.chatId = chatId;
		this.userId = userId;
		this.content = content;
	}
}
